package com.sand.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sand.dto.Owner.DetailAdd;
import com.sand.dto.Owner.DetailAddScheme;
import com.sand.dto.Owner.DetailDelete;
import com.sand.dto.Owner.DetailDto;
import com.sand.entity.buy.detail;

import java.util.List;

public interface DetailService extends IService<detail> {

    /**
     * 客户预购和修改
     */
    String addOrupdate(DetailAdd signAdd);

    /**
     * 客户根据标记查询预购
     * @param sign
     * @return
     */
    DetailDto select(String sign);

    /**
     * 客户删除预购
     */
    Integer delete(DetailDelete delete);

    /**
     * 查看客户对应的所有预购
     */
    List<DetailDto> selectAll(Integer userid);

    /**
     * 添加预购到方案
     */
    String addScheme(Integer detailId);
}
